Xbasic

SQL::ConnectionListProperties Method

Syntax

Property_List as C = ListProperties()

Returns

Property_ListCharacter

A list of properties of the currently open connection.

Description

Create a list of all connection property names and values in the format <name><tab><value><crlf>

Discussion

The ListProperties() method creates a CR-LF delimited list of property names and values. A tab character separates each property name and corresponding value.

Example

dim conn as SQL::Connection
dim connString as C
connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}"
if .not. conn.open(connString)
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
ui_msg_box("Properties", conn.ListProperties())
conn.close()

See Also